# coding:utf-8

import urllib2
from bs4 import BeautifulSoup

class UseBase:
    def __init__(self):
        html = urllib2.urlopen('http://www.baidu.com')
        soup = BeautifulSoup(html,'html.parser')
        print(soup.get_text())

if __name__ == '__main__':
    s = UseBase()